package com.roc.jpamysql.model;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author roc
 * @since 2024-03-23
 */
@ApiModel(value="City对象", description="")
public class City extends Model<City> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "省市区名称")
    private String name;

    @ApiModelProperty(value = "上级ID")
    private Integer parentid;

    @ApiModelProperty(value = "简称")
    private String shortname;

    @ApiModelProperty(value = "级别:0,中国；1，省分；2，市；3，区、县")
    private Integer leveltype;

    @ApiModelProperty(value = "城市代码")
    private String citycode;

    @ApiModelProperty(value = "邮编")
    private String zipcode;

    @ApiModelProperty(value = "经度")
    private String lng;

    @ApiModelProperty(value = "纬度")
    private String lat;

    @ApiModelProperty(value = "拼音")
    private String pinyin;

    private String status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }
    public String getShortname() {
        return shortname;
    }

    public void setShortname(String shortname) {
        this.shortname = shortname;
    }
    public Integer getLeveltype() {
        return leveltype;
    }

    public void setLeveltype(Integer leveltype) {
        this.leveltype = leveltype;
    }
    public String getCitycode() {
        return citycode;
    }

    public void setCitycode(String citycode) {
        this.citycode = citycode;
    }
    public String getZipcode() {
        return zipcode;
    }

    public void setZipcode(String zipcode) {
        this.zipcode = zipcode;
    }
    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }
    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }
    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return null;
    }

    @Override
    public String toString() {
        return "City{" +
            "id=" + id +
            ", name=" + name +
            ", parentid=" + parentid +
            ", shortname=" + shortname +
            ", leveltype=" + leveltype +
            ", citycode=" + citycode +
            ", zipcode=" + zipcode +
            ", lng=" + lng +
            ", lat=" + lat +
            ", pinyin=" + pinyin +
            ", status=" + status +
        "}";
    }
}
